package com.xzs.thinking.model;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author : Iris.Xiao
 * @date : 2017/11/17 16:33
 * @description :
 */
//注意 index 配置必须是全部小写
@Document(indexName = "helloworldindex", type = "helloworld")
public class HelloWorldEsVO implements Serializable {
    @Id
    private Long id;
    private String articleId ;//主键
    private String title ;//标题
    private String content ;//文章内容
    private Integer contentType ;//内容类型,1:图文,2:视频
    private String userId ;//作者userId
    private Long favoritesCount ;//收藏数
    private Timestamp createTime ;//创建时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getArticleId() {
        return articleId;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getContentType() {
        return contentType;
    }

    public void setContentType(Integer contentType) {
        this.contentType = contentType;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Long getFavoritesCount() {
        return favoritesCount;
    }

    public void setFavoritesCount(Long favoritesCount) {
        this.favoritesCount = favoritesCount;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
}
